package com.rogue.feign;

import com.rogue.common.core.utils.ResultDTO;
import com.rogue.domain.entity.HsDepartment;
import com.rogue.domain.entity.HsEmployee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author YeahLiang
 * @Create 2022/04/14
 */
@FeignClient(value = "hs-employee")
public interface EmployeeFeign {

    @RequestMapping("/dept/easyGetOneDept/{id}")
    ResultDTO<HsDepartment> easyGetOneDept(@PathVariable("id") Long id);

    @RequestMapping("/employee/easyUpdateEmployee")
    ResultDTO<Boolean> easyUpdateEmployee(@RequestBody HsEmployee hsEmployee);

    @RequestMapping("/employee/easyGetOneEmployee/{id}")
    ResultDTO<HsEmployee> easyGetOneEmployee(@PathVariable("id") Long id);
}
